# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'optitoolkit.ui'
#
# Created: Thu Nov 03 13:00:56 2011
#      by: PyQt4 UI code generator 4.8.5
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(800, 640)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QtCore.QSize(640, 640))
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(10, 10, 781, 541))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.problemTab = QtGui.QWidget()
        self.problemTab.setObjectName(_fromUtf8("problemTab"))
        self.groupBox = QtGui.QGroupBox(self.problemTab)
        self.groupBox.setGeometry(QtCore.QRect(10, 60, 511, 161))
        self.groupBox.setTitle(QtGui.QApplication.translate("MainWindow", "Problem Definition", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.textbox_constraintFunctions = QtGui.QLineEdit(self.groupBox)
        self.textbox_constraintFunctions.setGeometry(QtCore.QRect(150, 120, 331, 20))
        self.textbox_constraintFunctions.setText(QtGui.QApplication.translate("MainWindow", "[\'x*(y**2)==8\']", None, QtGui.QApplication.UnicodeUTF8))
        self.textbox_constraintFunctions.setObjectName(_fromUtf8("textbox_constraintFunctions"))
        self.textbox_objectiveFunctions = QtGui.QLineEdit(self.groupBox)
        self.textbox_objectiveFunctions.setGeometry(QtCore.QRect(150, 80, 331, 20))
        self.textbox_objectiveFunctions.setText(QtGui.QApplication.translate("MainWindow", "x+y", None, QtGui.QApplication.UnicodeUTF8))
        self.textbox_objectiveFunctions.setObjectName(_fromUtf8("textbox_objectiveFunctions"))
        self.label_2 = QtGui.QLabel(self.groupBox)
        self.label_2.setGeometry(QtCore.QRect(25, 80, 101, 20))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Objective Functions", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.textbox_variables = QtGui.QLineEdit(self.groupBox)
        self.textbox_variables.setGeometry(QtCore.QRect(150, 40, 331, 20))
        self.textbox_variables.setText(QtGui.QApplication.translate("MainWindow", "x y", None, QtGui.QApplication.UnicodeUTF8))
        self.textbox_variables.setObjectName(_fromUtf8("textbox_variables"))
        self.label = QtGui.QLabel(self.groupBox)
        self.label.setGeometry(QtCore.QRect(35, 40, 91, 20))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Variables", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing)
        self.label.setObjectName(_fromUtf8("label"))
        self.label_3 = QtGui.QLabel(self.groupBox)
        self.label_3.setGeometry(QtCore.QRect(25, 120, 101, 20))
        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Constraint Functions", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.groupBox_2 = QtGui.QGroupBox(self.problemTab)
        self.groupBox_2.setGeometry(QtCore.QRect(550, 60, 211, 161))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("MainWindow", "Algorithm", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setObjectName(_fromUtf8("groupBox_2"))
        self.radioButton_GA = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_GA.setGeometry(QtCore.QRect(30, 40, 111, 17))
        self.radioButton_GA.setText(QtGui.QApplication.translate("MainWindow", "Genetic Algorithm", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton_GA.setChecked(True)
        self.radioButton_GA.setObjectName(_fromUtf8("radioButton_GA"))
        self.radioButton_PSO = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_PSO.setGeometry(QtCore.QRect(30, 80, 161, 17))
        self.radioButton_PSO.setText(QtGui.QApplication.translate("MainWindow", "Particle Swarm Optimization", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton_PSO.setObjectName(_fromUtf8("radioButton_PSO"))
        self.radioButton_ACO = QtGui.QRadioButton(self.groupBox_2)
        self.radioButton_ACO.setGeometry(QtCore.QRect(30, 120, 161, 17))
        self.radioButton_ACO.setText(QtGui.QApplication.translate("MainWindow", "Ant Colony Optimization", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton_ACO.setObjectName(_fromUtf8("radioButton_ACO"))
        self.pushButton_Start = QtGui.QPushButton(self.problemTab)
        self.pushButton_Start.setGeometry(QtCore.QRect(190, 240, 75, 23))
        self.pushButton_Start.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_Start.setObjectName(_fromUtf8("pushButton_Start"))
        self.pushButton_Abort = QtGui.QPushButton(self.problemTab)
        self.pushButton_Abort.setGeometry(QtCore.QRect(300, 240, 75, 23))
        self.pushButton_Abort.setText(QtGui.QApplication.translate("MainWindow", "Abort", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_Abort.setObjectName(_fromUtf8("pushButton_Abort"))
        self.pushButton_Help = QtGui.QPushButton(self.problemTab)
        self.pushButton_Help.setGeometry(QtCore.QRect(410, 240, 75, 23))
        self.pushButton_Help.setText(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton_Help.setObjectName(_fromUtf8("pushButton_Help"))
        self.groupBox_3 = QtGui.QGroupBox(self.problemTab)
        self.groupBox_3.setGeometry(QtCore.QRect(80, 310, 501, 201))
        self.groupBox_3.setTitle(QtGui.QApplication.translate("MainWindow", "Output", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_3.setObjectName(_fromUtf8("groupBox_3"))
        self.textBrowser_output = QtGui.QTextBrowser(self.groupBox_3)
        self.textBrowser_output.setGeometry(QtCore.QRect(10, 20, 481, 171))
        self.textBrowser_output.setObjectName(_fromUtf8("textBrowser_output"))
        self.progressBar = QtGui.QProgressBar(self.problemTab)
        self.progressBar.setGeometry(QtCore.QRect(250, 280, 118, 23))
        self.progressBar.setProperty("value", 0)
        self.progressBar.setTextVisible(False)
        self.progressBar.setObjectName(_fromUtf8("progressBar"))
        self.tabWidget.addTab(self.problemTab, _fromUtf8(""))
        self.algorithmSettingsTab = QtGui.QWidget()
        self.algorithmSettingsTab.setObjectName(_fromUtf8("algorithmSettingsTab"))
        self.tabWidget_2 = QtGui.QTabWidget(self.algorithmSettingsTab)
        self.tabWidget_2.setGeometry(QtCore.QRect(20, 10, 461, 331))
        self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
        self.gaSettingsTab = QtGui.QWidget()
        self.gaSettingsTab.setObjectName(_fromUtf8("gaSettingsTab"))
        self.label_6 = QtGui.QLabel(self.gaSettingsTab)
        self.label_6.setGeometry(QtCore.QRect(10, 40, 71, 16))
        self.label_6.setText(QtGui.QApplication.translate("MainWindow", "Search Space", None, QtGui.QApplication.UnicodeUTF8))
        self.label_6.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.label_6.setObjectName(_fromUtf8("label_6"))
        self.textbox_searchSpace = QtGui.QLineEdit(self.gaSettingsTab)
        self.textbox_searchSpace.setGeometry(QtCore.QRect(110, 40, 113, 20))
        self.textbox_searchSpace.setText(QtGui.QApplication.translate("MainWindow", "-inf,inf;-inf,inf", None, QtGui.QApplication.UnicodeUTF8))
        self.textbox_searchSpace.setObjectName(_fromUtf8("textbox_searchSpace"))
        self.textbox_populationSize = QtGui.QLineEdit(self.gaSettingsTab)
        self.textbox_populationSize.setGeometry(QtCore.QRect(110, 80, 113, 20))
        self.textbox_populationSize.setText(QtGui.QApplication.translate("MainWindow", "10", None, QtGui.QApplication.UnicodeUTF8))
        self.textbox_populationSize.setObjectName(_fromUtf8("textbox_populationSize"))
        self.label_7 = QtGui.QLabel(self.gaSettingsTab)
        self.label_7.setGeometry(QtCore.QRect(10, 80, 81, 20))
        self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Population Size", None, QtGui.QApplication.UnicodeUTF8))
        self.label_7.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.label_7.setObjectName(_fromUtf8("label_7"))
        self.textbox_iterationCount = QtGui.QLineEdit(self.gaSettingsTab)
        self.textbox_iterationCount.setGeometry(QtCore.QRect(110, 120, 113, 20))
        self.textbox_iterationCount.setText(QtGui.QApplication.translate("MainWindow", "10000", None, QtGui.QApplication.UnicodeUTF8))
        self.textbox_iterationCount.setObjectName(_fromUtf8("textbox_iterationCount"))
        self.label_8 = QtGui.QLabel(self.gaSettingsTab)
        self.label_8.setGeometry(QtCore.QRect(10, 120, 81, 20))
        self.label_8.setText(QtGui.QApplication.translate("MainWindow", "No. of Iterations", None, QtGui.QApplication.UnicodeUTF8))
        self.label_8.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.label_8.setObjectName(_fromUtf8("label_8"))
        self.checkBox_IVP = QtGui.QCheckBox(self.gaSettingsTab)
        self.checkBox_IVP.setGeometry(QtCore.QRect(290, 40, 131, 17))
        self.checkBox_IVP.setText(QtGui.QApplication.translate("MainWindow", "Integer Value Problem", None, QtGui.QApplication.UnicodeUTF8))
        self.checkBox_IVP.setChecked(True)
        self.checkBox_IVP.setTristate(False)
        self.checkBox_IVP.setObjectName(_fromUtf8("checkBox_IVP"))
        self.textbox_crossoverRate = QtGui.QDoubleSpinBox(self.gaSettingsTab)
        self.textbox_crossoverRate.setGeometry(QtCore.QRect(110, 160, 62, 22))
        self.textbox_crossoverRate.setMaximum(1.0)
        self.textbox_crossoverRate.setSingleStep(0.01)
        self.textbox_crossoverRate.setProperty("value", 0.8)
        self.textbox_crossoverRate.setObjectName(_fromUtf8("textbox_crossoverRate"))
        self.label_9 = QtGui.QLabel(self.gaSettingsTab)
        self.label_9.setGeometry(QtCore.QRect(10, 160, 81, 20))
        self.label_9.setText(QtGui.QApplication.translate("MainWindow", "Crossover Rate", None, QtGui.QApplication.UnicodeUTF8))
        self.label_9.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.label_9.setObjectName(_fromUtf8("label_9"))
        self.label_10 = QtGui.QLabel(self.gaSettingsTab)
        self.label_10.setGeometry(QtCore.QRect(10, 200, 81, 20))
        self.label_10.setText(QtGui.QApplication.translate("MainWindow", "Mutation Rate", None, QtGui.QApplication.UnicodeUTF8))
        self.label_10.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft)
        self.label_10.setObjectName(_fromUtf8("label_10"))
        self.textbox_muatationRate = QtGui.QDoubleSpinBox(self.gaSettingsTab)
        self.textbox_muatationRate.setGeometry(QtCore.QRect(110, 200, 62, 22))
        self.textbox_muatationRate.setMaximum(1.0)
        self.textbox_muatationRate.setSingleStep(0.01)
        self.textbox_muatationRate.setProperty("value", 0.1)
        self.textbox_muatationRate.setObjectName(_fromUtf8("textbox_muatationRate"))
        self.tabWidget_2.addTab(self.gaSettingsTab, _fromUtf8(""))
        self.psoSettingsTab = QtGui.QWidget()
        self.psoSettingsTab.setObjectName(_fromUtf8("psoSettingsTab"))
        self.tabWidget_2.addTab(self.psoSettingsTab, _fromUtf8(""))
        self.acoSettings = QtGui.QWidget()
        self.acoSettings.setObjectName(_fromUtf8("acoSettings"))
        self.tabWidget_2.addTab(self.acoSettings, _fromUtf8(""))
        self.tabWidget.addTab(self.algorithmSettingsTab, _fromUtf8(""))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 21))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)
        self.label_2.setBuddy(self.textbox_objectiveFunctions)
        self.label.setBuddy(self.textbox_variables)
        self.label_3.setBuddy(self.textbox_constraintFunctions)
        self.label_6.setBuddy(self.textbox_searchSpace)
        self.label_7.setBuddy(self.textbox_populationSize)
        self.label_8.setBuddy(self.textbox_iterationCount)
        self.label_9.setBuddy(self.textbox_crossoverRate)
        self.label_10.setBuddy(self.textbox_muatationRate)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.problemTab), QtGui.QApplication.translate("MainWindow", "Optimization Statement", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.gaSettingsTab), QtGui.QApplication.translate("MainWindow", "GA", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.psoSettingsTab), QtGui.QApplication.translate("MainWindow", "PSO", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.acoSettings), QtGui.QApplication.translate("MainWindow", "ACO", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.algorithmSettingsTab), QtGui.QApplication.translate("MainWindow", "Algorithm Settings", None, QtGui.QApplication.UnicodeUTF8))

